package com.useeinfo.oa.common.exception.dto;

import org.springframework.http.HttpStatus;

/**
 * 封装的异常实体.
 *
 * @author GeniusJ
 * @email 975473185@qq.com
 * @date 2017-11-19
 * @time 21:05
 */
public class ExceptionDto {
    /**
     * 异常
     */
    private Exception exception;
    /**
     * 状态码
     */
    private HttpStatus resultEnums;
    /**
     * 内容
     */
    private String msg;
    /**
     * 返回视图页
     */
    private String view;


    public ExceptionDto() {
    }

    public ExceptionDto(Exception exception, String msg,HttpStatus resultEnums, String view) {
        this.exception = exception;
        this.msg=msg;
        this.resultEnums = resultEnums;
        this.view = view;
    }

    public Exception getException() {
        return exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }

    public HttpStatus getResultEnums() {
        return resultEnums;
    }

    public void setResultEnums(HttpStatus resultEnums) {
        this.resultEnums = resultEnums;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getView() {
        return view;
    }

    public void setView(String view) {
        this.view = view;
    }
}
